﻿package com.jxl.dnd.combat.actions
{
	import flash.events.EventDispatcher;
	
	
	public class Action extends EventDispatcher
	{
		public var receiver;
		public var pending:Boolean;
		public var type:String; // standard, move, full-round, free, non
		public var situation:String; // normal, restricted
		public var attackOfOpportunity:Boolean;
		
		
		public function Action(p_receiver:Object):Void
		{
			receiver = p_receiver;
		}
		
		public function execute()
		{
		}
		
		public function executed():Void
		{
			pending = false;
			dispatchEvent({type: "executed", target: this, results: arguments});
		}
		
		public function undo()
		{
		}
		
		public function undone()
		{
			dispatchEvent({type: "undone", target: this, results: arguments});
		}
	}
}